#include "SMyButton.h"
#include "Framework/Application/SlateApplication.h"

void SMyButton::Construct(const FArguments& InArgs) {
	SButton::Construct(InArgs);

	SetVAlign(VAlign_Center);
	SetHAlign(HAlign_Center);

	// this->SetOnClicked(FOnClicked::CreateRaw(this, &SMyButton::OnClicked));
}

FReply SMyButton::OnClicked(){
	// FMessageDialog::Open(EAppMsgType::Ok, FText::FromString("hello world"));
	UE_LOG(LogTemp, Display, TEXT("Path: %s"), *FPaths::EngineDir());
	return FReply::Handled();
}
